// doc

.doc-progress {
  position: relative;
  margin-bottom: $doc-progress-margin-bottom;
  padding-bottom: $doc-progress-padding-bottom;
  font-size: $doc-font-size-base;
  color: $doc-color-base;
  line-height: $doc-line-height;
  border-bottom: 2px solid $doc-progress-border-color;

  .doc {
    &__inner {
      position: relative;
      padding-left: $doc-progress-padding-left;
      padding-right: $doc-progress-padding-right;

      &:before {
        position: absolute;
        content: '';
        left: 0;
        top: 0;
        width: 25px;
        height: 30px;
        background: url('~images/icons/doc.png') left top / auto no-repeat;
      }
    }

    &__title {
      display: block;
      position: relative;
      margin-bottom: $doc-title-margin-bottom;

      &.required:before {
        position: absolute;
        content: '*';
        top: -5px;
        left: -10px;
        color: $doc-progress-color-required;
      }

      .title__inner {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .title__right {
        float: right;
        margin-left: $doc-progress-title-right-margin;
        text-align: right;

        > a {
          display: inline-block;
          text-decoration: underline;
          margin-left: 16px;
        }
      }
    }

    &__progress {
      margin-bottom: 0;
      height: $doc-progress-height;
      border-radius: $doc-progress-border-radius;
      background-color: $doc-progress-bg-base;
      box-shadow: none;

      .progress-bar {
        border-radius: $doc-progress-border-radius;
        background-color: $doc-progress-bg-success;
        box-shadow: none;
      }
    }

    &__close,
    &__download {
      position: absolute;
      content: '';
      right: 0;
      top: 50%;
      cursor: pointer;
    }

    &__close {
      width: 16px;
      height: 16px;
      background: url('~images/icons/remove.png') center / 100% no-repeat;
      margin-top: -8px;
    }

    &__download {
      width: 17px;
      height: 24px;
      margin-top: -12px;
      background: url('~images/icons/download.png') center / 100% no-repeat;
    }

    &__right {
      float: right;
      text-align: right;

      .btn {
        margin-left: 12px;
        padding: 5px 9px 4px;
        line-height: (19 / 14);
        border-radius: 4px;
      }

      + .doc__inner {
        padding-right: $doc-progress-padding-right-lg;
      }
    }
  }
}